<template>
  <el-container
    class="main__inner-container"
    v-loading="load"
    :element-loading-text="loadingText"
  >
    <el-header class="main-header">
      <slot name="main-header"></slot>
    </el-header>
    <el-main class="main-main">
      <slot></slot>
    </el-main>
    <el-footer class="main-footer">
      <slot name="main-footer"></slot>
    </el-footer>
  </el-container>
</template>
<script>
export default {
  name: "wrapper-main",
  props: {
    load: {
      type: Boolean,
      default: false
    },
    loadingText: {
      type: String,
      default: "加载中..."
    }
  },
  data() {
    return {};
  },
  computed: {},
  created() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
.main__inner-container {
  height: 100%;
  .main-header {
    // height: 30px;
    line-height: 60px;
    font-size: 20px;
    color: #666;
    text-indent: 20px;
    border-bottom: 1px solid rgba(40, 52, 70, 0.2);
  }
  .main-main {
    padding: 0;
  }
  .main-footer {
    display: flex;
    height: 60px;
    line-height: 60px;
    border-top: 1px solid rgba(40, 52, 70, 0.2);
  }
}
</style>